<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname"
                class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Article_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-article_title" data-rule="required" class="form-control " rows="5" name="row[article_title]"
                cols="50">{$row.article_title}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Article_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-article_image" data-rule="required" class="form-control" size="50"
                    name="row[article_image]" type="text" value="{$row.article_image}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-article_image" class="btn btn-danger plupload"
                            data-input-id="c-article_image"
                            data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false"
                            data-preview-id="p-article_image"><i class="fa fa-upload"></i>
                            {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-article_image" class="btn btn-primary fachoose"
                            data-input-id="c-article_image" data-mimetype="image/*" data-multiple="false"><i
                                class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-article_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-article_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Article_content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-article_content" data-rule="required" class="form-control editor" rows="5"
                name="row[article_content]" cols="50">{$row.article_content}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Article_views')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-article_views" data-rule="required" class="form-control" name="row[article_views]"
                type="number" value="{$row.article_views}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Article_comment_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-article_comment_count" data-rule="required" class="form-control"
                name="row[article_comment_count]" type="number" value="{$row.article_comment_count}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Article_date')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-article_date" data-rule="required" class="form-control datetimepicker"
                data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[article_date]" type="text"
                value="{$row.article_date}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Article_like_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-article_like_count" data-rule="required" class="form-control" name="row[article_like_count]"
                type="number" value="{$row.article_like_count}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sorts_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!-- <input id="c-sorts_ids" data-rule="required" data-field="sort_name" data-source="blog/sorts/index"
                data-multiple="true" class="form-control selectpage" name="row[sorts_ids]" type="text"
                value="{$row.sorts_ids}"> -->
                <select id="c-sorts_ids" data-rule="required" class="form-control selectpicker" name="row[sorts_ids]">
                    {foreach name="psorts" item="vo"}
                    <option data-id="{$vo.id}" value="{$key}" {in name="key" value="$row.sorts_ids" }selected{/in}>{$vo.sort_name} </option>
                        {/foreach} </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Labels_ids')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-labels_ids" data-rule="required" data-field="label_name" data-source="blog/labels/index"
                data-multiple="true" class="form-control selectpage" name="row[labels_ids]" type="text"
                value="{$row.labels_ids}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number"
                value="{$row.weigh}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status" data-rule="required" class="form-control" name="row[status]" type="number"
                value="{$row.status}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>